package org.baicaixiaozhan.learncommon.util.accesslimit;

import org.baicaixiaozhan.learncommon.util.annotation.Beta;
import org.baicaixiaozhan.learncommon.util.annotation.BetaType;

/**
 * DESC:
 *
 * @since 2021-07-01
 * @author baicaixiaozhan
 */
public interface AccessLimiter {

    /**
     * 开启限制
     */
    default void startAccessLimit() {};

    /**
     * 开启限制
     *
     * @param count 请求数
     * @param timeOfMinutes 分钟数
     */
    @Beta(type = BetaType.UNSTABLE)
    default void startAccessLimit(long count, long timeOfMinutes) {};
}
